package com.bj.boot.service.impl;

import com.bj.boot.bean.Account;
import com.bj.boot.mapper.AccountMapper;
import com.bj.boot.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author shkstart
 * @create 2021-09-20 13:46
 */
@Service
public class AccountServiceImpl implements AccountService {
    @Autowired
    AccountMapper accountMapper;

    public Account getAcctById(Long id){
        return accountMapper.getAcct(id);
    }
    public Integer addAcct(String name,Integer age){
        return accountMapper.insertAcct(name,age);
    }
}
